package com.xjscrm.server.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xjscrm.common.entity.GroupPullTask;
import com.xjscrm.server.dto.grouppulltask.GroupPullTaskQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Repository
public interface GroupPullTaskMapper {
    int deleteById(Long id);

    int insert(GroupPullTask record);

    int insertSelective(GroupPullTask record);

    GroupPullTask selectById(Long id);

    int updateByIdSelective(GroupPullTask record);

    int updateById(GroupPullTask record);

    int updateStatusById(GroupPullTask record);

    int updateHanderTimeById(GroupPullTask record);

    /**
     * 分页查询
     * @param page
     * @param query
     * @return
     */
    ArrayList<GroupPullTask> findByList(Page<GroupPullTask> page, @Param("query") GroupPullTaskQuery query);
}